home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 24 / Mac Magazin and MacEasy Magazine CD - Issue 24.iso / Wissenschaft & Technik / Sys Environment (PPC) Dev ƒ / Read Me (For Programmers) < prev    next >
Text File  |  1996-07-16  |  3KB  |  25 lines

  1.                                            SysEnvironment v1.0
  2.                                                                               by Brian Bergstrand
  3.  
  4. The part of the included source code that is meant to be used is the class known as "MachineEnv", this class provides easy access to the most common Gestalt values that any programmer would need to know. The rest of the program is just a very quickly done demo on how this information could be used and interpreted, but the code is documented well enough that you could learn the basics of Macintosh programming. For those of you who want to just plug the class in and go, here is the class interface:
  5.   
  6.   //a 0 (zero) returned by any of these functions means that there was a problem encountered,
  7.  //except for the ReturnVMon() function of course.
  8.  long ReturnSysVer (void);//returns a long value containing the current System version
  9.  long ReturnUpdateVer (void);//returns a long value containing the current 
  10.                              //update version for 7.5.3 and  >
  11.  long ReturnMachineType (void);//returns a long value containing the current machine ID number
  12.  long ReturnProcessor (void);//returns a long value containing the current PPC processor
  13.  long ReturnRealMem (void);//returns a long value containg the current physical RAM in bytes
  14.  long ReturnLogicalMem (void);//returns a long value containg the current logical RAM in bytes
  15.  Boolean ReturnVMon (void);//returns a Boolean value set to true if VM is present, false if not
  16.  
  17. This particluar version of the actual program is PPC only, but if anyone wants to make the necssary changes to the included project/files to make a 68k version, they are welcome to, as long as you return the altered program to me, so I can make sure it acts the same as the original. I don't want a bunch of different Apps floating around all over the place, and then get a ton of e-mail saying "my" program does not work right.
  18.  
  19.                                                                                *Disclaimer*
  20. I am providing this source code for free to any Macintosh programmer. I provide no guarantees as to the proper functioning of this code on any computer. As such, if you use this code in anyway, I can’t not be held liable for any damages incurred because of said use. 
  21.  
  22. The included code is the property of Brian Bergstrand © Copyright 1996.  You may use this code in your program ,  as long as you  give the author (me) proper credit. You may not recompile and redistribute the included source code into your own App that functions in the same manner as the included program "Sys Environment". 
  23.  
  24. The code contained in the files "machineEnvClass.h", and "machineEnvConstructor.cpp", herein after known as "The Class" may not be altered in any way (unless otherwise noted, and then only in the context noted). You may use The Class in your program, but if you find it does not meet all of your needs, you must not alter The Class in anyway. Instead you may sub-class from it and extend it in the sub-class to fit your needs.
  25.